* hide inifile_t from users.
* explicitly make vars have internal linkage
although since c++11 all vars declared in unnamed namespaces will
anyway.
#define MYNAME "inifile"
+struct inifile_t {
+ QHash<QString, InifileSection> sections;
+ QString source;
+};
+
class InifileSection
{
public:
/* internal procedures */
-#define GPSBABEL_INIFILE "gpsbabel.ini"
-#define GPSBABEL_SUBDIR ".gpsbabel"
+static constexpr char GPSBABEL_INIFILE[] = "gpsbabel.ini";
+static constexpr char GPSBABEL_SUBDIR[] = ".gpsbabel";
static QString
#include <QString> // for QString
class InifileSection;
-struct inifile_t {
- QHash<QString, InifileSection> sections;
- QString source;
-};
+struct inifile_t; // forward declare, opaque to users.
/*
inifile_init: